<div class="main-form">
    <form name="form1" id="form1" method="post" action="<?php echo $this->baseUrl ?>/material/add" enctype="multipart/form-data">
        <p>
        	<label for="name">教材名称：</label>
            <input name="name" id="name" type="text" class="input-text" />
            <span id="TipTitle" class="Show"></span>
        </p>
        <p><label for="location">编写人员分工：</label><input name="duty" type="text" class="input-text" /></p>
        <p>
        	<label for="start_time">编写时间：</label>
            <input id="start_time" name="start_time" type="text" class="input-text" value="<?php echo date('Y-m-d', time()); ?>" />
            <span id="TipStartTime" class="Show"></span>
        </p>
        
        <p><label for="summary">教材简介：</label><textarea name="summary" class="input-textarea" ></textarea></p>
        <p><label for="location">上传课件：</label><input name="materials" type="file" class="input-text" /></p>
        <p><label for="location">课件注释：</label><textarea name="materials_comment" class="input-textarea"></textarea></p>
        <p><label for="location">上传练习文件：</label><input name="pratices" type="file" class="input-text" /></p>
        <p><label for="location">联系文件注释：</label><textarea name="pratices_comment" class="input-textarea"></textarea></p>
        
        <p><label>&nbsp;</label><input type="submit" class="button" style="margin-left:0" value="提 交" /></p>
    </form>
</div>
<!-- 
<div class="main-form">
    <form action="<?php echo $this->baseUrl;?>/excel/upload" method="post" enctype="multipart/form-data" />
        <input type="hidden" name="model" value="class" id="model" />
        <p>	
            <label>&nbsp;</label>
            <input type="file" name="files" />
            <input type="submit" class="button" value="批量上传" />
        </p>
    </form>
</div>
 -->
<script type="text/javascript">
$(document).ready(function(){
	$(".button").click(function(){
		var type = $(this).siblings("label").attr("class");
		$("#hover_type").val(type);
	});
});
</script>